package br.com.educa.util;

import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

public class CollectionUtils<T> {
	
	public  List<T> toList(Set<T> hashset) {
	    List<T> list = new ArrayList<T>(hashset);
	    return list;
	  }
	
	public ArrayList<T> toArrayList(Set<T> hashset) {
	    ArrayList<T> list = new ArrayList<T>(hashset);
	    return list;
	  }
	
	public Set<T> toSet(List<T> arrayList){
		HashSet<T> set = new HashSet<T>(arrayList);
		return set;
	}

	public HashSet<T> toHashSet(List<T>arrayList){
		HashSet<T> set = new HashSet<T>(arrayList);
		return set;
	}

}
